package com.wushi.lenovo.asia5b.app_model.good;

import com.mvp.base.model.BaseModel;
import com.wushi.lenovo.asia5b.app_model.good.bean.OrderMethodInter;

import java.util.List;

/**
 * Created by zhangyuncai on 2019/2/16.
 */
public class PaymentMethodModel extends BaseModel {

    /**
     * payments : [{"code":"topup","title":"My Wallet (RM 12,167.34)","value":12167.34,"tooltips":"","formula":"","text":"RM 12,167.34","sort_order":"0"},{"code":"fpx","title":"FPX","value":10,"tooltips":"","formula":"","text":"RM 10.00","sort_order":"1"},{"code":"creditcard","title":"Credit Card","value":10,"tooltips":"","formula":"","text":"RM 10.00","sort_order":"2"}]
     * language_id : 1
     * member_id : 3
     * currency_code : MYR
     * total : 81.12
     */

    private List<PaymentsBean> payments;

    public List<PaymentsBean> getPayments() {
        return payments;
    }


    public static class PaymentsBean implements OrderMethodInter {
        /**
         * code : topup
         * title : My Wallet (RM 12,167.34)
         * value : 12167.34
         * tooltips :
         * formula :
         * text : RM 12,167.34
         * sort_order : 0
         */

        private String code;
        private String title;
        private double value;
        private String tooltips;
        private String formula;
        private String text;
        private String sort_order;

        public String getCode() {
            return code;
        }


        public String getTitle() {
            return title;
        }


        public double getValue() {
            return value;
        }


        public String getTooltips() {
            return tooltips;
        }


        public String getFormula() {
            return formula;
        }

        public String getText() {
            return text;
        }


        public String getSort_order() {
            return sort_order;
        }


        @Override
        public String getMethodName() {
            return title;
        }
    }
}
